package cn.edu.jju.psytest.model.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Type;

@Entity
@Table(name="tb_teachers")
public class Teacher {
	
	private String teacherId;
	private int privilege;

	/**
	 * Getters And Setters
	 */
	@Id
	@Type(type="string")
	@Column(name="teacher_id", length=20)
	public String getTeacherId() {
		return teacherId;
	}

	public void setTeacherId(String teacherId) {
		this.teacherId = teacherId;
	}

	@Type(type="int")
	public int getPrivilege() {
		return privilege;
	}

	public void setPrivilege(int privilege) {
		this.privilege = privilege;
	}
}
